package avicit.bdp.dgs.metadata.dto;

import avicit.bdp.common.base.BaseDTO;
import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.LogField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

@ApiModel(value = "MetadataBusinessDto", description = "元数据业务属性")
@Table(name = "bdp_dgs_metadata_business")
public class MetadataBusinessDto extends BaseDTO {

  private static final long serialVersionUID = 1L;

  /** 主键ID */
  @LogField
  @ApiModelProperty(value = "主键")
  @FieldRemark(column = "id", field = "id", name = "主键")
  @Column(name = "id")
  @avicit.platform6.core.annotation.log.Id
  @javax.persistence.Id
  private String id;

  /** 元数据ID */
  @LogField
  @ApiModelProperty(value = "元数据ID")
  @FieldRemark(column = "table_id", field = "tableId", name = "元数据ID")
  private String tableId;

  /** 业务属性ID */
  @LogField
  @ApiModelProperty(value = "业务属性ID")
  @FieldRemark(column = "business_id", field = "businessId", name = "业务属性ID")
  private String businessId;

  /** 业务属性值 */
  @LogField
  @ApiModelProperty(value = "业务属性值")
  @FieldRemark(column = "value", field = "value", name = "业务属性值")
  private String value;

  @ApiModelProperty(value = "显示值")
  @Transient
  private String displayValue;

  @LogField
  @FieldRemark(column = "metadata_version", field = "metadataVersion", name = "元数据版本")
  @ApiModelProperty(value = "元数据版本")
  private String metadataVersion;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getTableId() {
    return tableId;
  }

  public void setTableId(String tableId) {
    this.tableId = tableId;
  }

  public String getBusinessId() {
    return businessId;
  }

  public void setBusinessId(String businessId) {
    this.businessId = businessId;
  }

  public String getValue() {
    return value;
  }

  public void setValue(String value) {
    this.value = value;
  }

  public String getDisplayValue() {
    return displayValue;
  }

  public void setDisplayValue(String displayValue) {
    this.displayValue = displayValue;
  }

  public String getMetadataVersion() {
    return metadataVersion;
  }

  public void setMetadataVersion(String metadataVersion) {
    this.metadataVersion = metadataVersion;
  }
}
